#{extends 'main.html' /}
#{set title:'首页设置' /}
<div class="page-group">
    <div class="page">
        <header class="bar bar-nav">
            <a href="javascript:history.go(-1);" class="icon icon-left pull-left"></a>
            <h1 class="title">添加头条</h1>
        </header>
        <section class="product_add content scroll_y">
            <div class="list-block">
                <form name="form1" method="post" action="/index/notice/save">

                    <ul>
                        <!-- Text inputs -->
                        <li>
                            <div class="item-content">
                                <div class="item-inner">
                                    <div class="item-title label">第一条</div>
                                    <div class="item-input">
                                        <input type="text" name="activityProduct0.title"  #{if number >= 1} value="${noticeActivity?.activityProducts?.get(0)?.title}"  #{/if} placeholder="请输入">
                                        <input type="hidden" name="activityProduct0.id"  #{if number >= 1} value="${noticeActivity?.activityProducts?.get(0)?.id}"  #{/if}>
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="item-content">
                                <div class="item-inner">
                                    <div class="item-title label">第二条</div>
                                    <div class="item-input">
                                        <input type="text" name="activityProduct1.title" #{if number >= 2} value="${noticeActivity?.activityProducts?.get(1)?.title}"  #{/if} placeholder="请输入">
                                        <input type="hidden" name="activityProduct1.id"  #{if number >= 2} value="${noticeActivity?.activityProducts?.get(1)?.id}"  #{/if} >
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="item-content">
                                <div class="item-inner">
                                    <div class="item-title label">第三条</div>
                                    <div class="item-input">
                                        <input type="text" name="activityProduct2.title" #{if number >= 3}  value="${noticeActivity?.activityProducts?.get(2)?.title}"  #{/if} placeholder="请输入">
                                        <input type="hidden" name="activityProduct2.id" #{if number >= 3} value="${noticeActivity?.activityProducts?.get(2)?.id}" #{/if}>
                                    </div>
                                </div>
                            </div>
                        </li>

                    </ul>
                    <div class="content-block">
                        <input type="submit" name="button" class="button button-fill button-pink" id="button"
                               value="提交">
                    </div>

                </form>
            </div>

        </section>

    #{include 'footer.html'/}
    </div>
</div>

